package com.cloud.basic.test;

/**
 * @program: basic
 * @description:
 * @author: Cloud
 * @create: 2020/11/17 16:07:24
 */
public class testIndexof {

    public static void main(String[] args) {
        String str = "xiaoxianishizhu";
        int i = str.indexOf("xiao");
        boolean xia = str.contains("xiao");
        System.out.println(xia);
        String substring = str.substring(i+4,str.length());
        System.out.println("i = " + i);
        System.out.println("substring = " + substring);
    }
}
